package com.bawei.mall.product.controller;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductHomeInfo;
import com.bawei.mall.product.service.IMallProductHomeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MallProductHomeInfoController
 * @Description 描述
 * @Author ZiZheng.Li
 * @Date 2024/6/30 15:31
 */
@RestController
@RequestMapping("/home")
public class MallProductHomeInfoController {
    @Autowired
    private IMallProductHomeInfoService productHomeInfoService;
    @GetMapping("/content")
    public R<MallProductHomeInfo> content() {
        return productHomeInfoService.content();
    }

    @GetMapping("/recommendProductList")
    public R<MallProductHomeInfo> recommendProductList() {
        return productHomeInfoService.content();
    }
}
